package com.java.cloud.order.feign;

import com.java.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author jiangli
 * @since 2020/3/13 12:09
 */
@FeignClient("cloud-storage-service")
public interface StorageFeign{

	/**
	 * 扣减库存
	 */
	@PostMapping("/storage/decrease")
	R decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
